package com.whiteape.book.model.bo;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.whiteape.book.model.dto.CollectionMediaBean;
import com.whiteape.book.model.dto.CollectionMediaGroupBean;
import com.whiteape.book.ui.base.BaseRVFragment;

import java.util.List;

public class CollectionMediaWrapper implements BaseRVFragment.Movable, MultiItemEntity {
    private boolean isGroup;
    private CollectionMediaBean mediaBean;
    private MediaGroupBo mediaGroupBo;
    public static final int COMMON = 0;
    public static final int GROUP = 1;

    @Override
    public int getItemType() {
        return isGroup ? GROUP : COMMON;
    }

    @Override
    public boolean canMove() {
        return !isGroup;
    }

    public CollectionMediaBean getMediaBean() {
        return mediaBean;
    }

    public void setMediaBean(CollectionMediaBean mediaBean) {
        this.mediaBean = mediaBean;
    }

    public boolean isGroup() {
        return isGroup;
    }

    public void setGroup(boolean group) {
        isGroup = group;
    }

    public MediaGroupBo getMediaGroupBo() {
        return mediaGroupBo;
    }

    public void setMediaGroupBo(MediaGroupBo mediaGroupBo) {
        this.mediaGroupBo = mediaGroupBo;
    }
}
